using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;

/// Store this code as "MakeFolders.cs" in the Assets\Editor directory (create it, if it does not exist)
/// Creates a number of directories for storage of various content types.
/// Modify as you see fit.
/// Directories are created in the Assets dir.
/// Not tested on a Mac.


public class FolderMaker : ScriptableObject {

	[MenuItem("Assets/Make Project Folders")]
	static void MenuMakeFolders() {
		CreateFolders();
	}

	static void CreateFolders() {
		string fp = Application.dataPath + "/";
		string game_fp = Application.dataPath + "/GameAssets/";

		Directory.CreateDirectory(fp + "GameAssets");
		Directory.CreateDirectory(fp + "Resources");
		Directory.CreateDirectory(fp + "Scenes");
		Directory.CreateDirectory(fp + "Scripts");

		Directory.CreateDirectory(game_fp + "Animations");
		Directory.CreateDirectory(game_fp + "Audio");
		Directory.CreateDirectory(game_fp + "Fonts");
		Directory.CreateDirectory(game_fp + "Icons");
		Directory.CreateDirectory(game_fp + "Meshes");
		Directory.CreateDirectory(game_fp + "Materials");
		Directory.CreateDirectory(game_fp + "Models");
		Directory.CreateDirectory(game_fp + "Prefabs");
		Directory.CreateDirectory(game_fp + "Shaders");
		Directory.CreateDirectory(game_fp + "Textures");

		Debug.Log("Created directories");
	}
}